import { fork, Serializable } from 'child_process'

const worker = fork('./node/worker')

worker.on("message", function (m: Serializable) {
  console.log("Parent get message", m)
})

worker.send({hello: 'this is parent'})